#ifndef WAIT_EVENTS_H
#define WAIT_EVENTS_H

#include "appdefs.h"
#include "ulcd_defs.h"

#define CHECK_EVENT(event)\
    ( (event)  && (event(event##_p)) )

#define null1 NULL,0
#define null2 NULL,0,NULL,0
#define null3 NULL,0,NULL,0,NULL,0

//
int waitEvent(unsigned int _timeout
    , bool (*evListener1)(int), int evListener1_p
    , bool (*evListener2)(int), int evListener2_p
    , bool (*evListener3)(int), int evListener3_p);


#endif // UTILS_H


